﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JMY_Models;

namespace JMY_BLL
{
   public class T_OrderForm_Infos_BLL:BaseBLL<T_OrderForm_Infos_Model>
    {
        private const string _type = "T_OrderForm_Infos_DAL";
        private JMY_IDAL.T_OrderForm_Infos_IDAL _Dal;
        public T_OrderForm_Infos_BLL() : base(_type)
        {
            _Dal = base.Dal as JMY_IDAL.T_OrderForm_Infos_IDAL;
            if (_Dal==null)
            {
                throw new NullReferenceException(_type);
            }
        }
        /// <summary>
        /// 显示订单
        /// </summary>
        /// <returns></returns>
        public List<T_OrderForm_Infos_Model> OrderFormShow(int sid,int yid,string stime,string etime)
        {
            return _Dal.OrderFormShow(sid,yid,stime,etime);
        }
        /// <summary>
        /// 获取状态
        /// </summary>
        /// <returns></returns>
        public List<T_OrderForm_State_Infos_Model> GetState()
        {

            return _Dal.GetState();
        }
        /// <summary>
        /// 获取医院
        /// </summary>
        /// <returns></returns>
        public List<T_Doctor_Infos_Model> GetHospital()
        {
            return _Dal.GetHospital();
        }
    }
}
